I am creating a module that will prevent the user from logging in until the admin has approved the account. I have added a custom attribute using the below install script:
<?php $installer = $this; $attribute = array( 'type' => 'int', 'input' => 'text', 'label' => 'Is Active', 'global' => 1, 'visible' => 1, 'default' => '0', 'required' => 0, 'user_defined' => 0, 'used_in_forms' => array( 'adminhtml_customer', ), 'comment' => 'Flag to check if user can log into their account. 0 = No, 1 = Yes.', ); $installer->addAttribute('customer', 'can_log_in', $attribute); $installer->endSetup();
The account listener works and the attribute is being set (I can see it in the database). The problem is, I cannot see it in the admin area (Customers -> Manage Customers -> Edit -> Account Information) to toggle.
How do I get my attribute to appear in the Account Information segment of the edit customer form?