You are here

function mb_user_type_get_types in More Buttons 7

Get the types of pages allowed to use more buttons.

At the moment are only supported the user accounts.

Return value

array

3 calls to mb_user_type_get_types()
mb_get_mappings in mb/mb.module
Get all More Buttons mappings.
mb_user_reset_submit in mb_user/mb_user.admin.inc
Resave all system variables of the MB User module to reset the module settings.
mb_user_uninstall in mb_user/mb_user.install
Implements hook_uninstall().

File

mb_user/mb_user.module, line 227
Provides additional buttons for content in user context.

Code

function mb_user_type_get_types() {
  $account = array();
  $account['type'] = 'user_account';
  $account['name'] = t('User account');
  $page_types = array(
    'user_account' => $account,
  );
  return $page_types;
}