You are here

function drupagram_user_settings in Drupagram 7

Same name and namespace in other branches
  1. 6 drupagram.pages.inc \drupagram_user_settings()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 string reference to 'drupagram_user_settings'
drupagram_menu in ./drupagram.module
Implements hook_menu().

File

./drupagram.pages.inc, line 58
Drupagram admin page callaback functions.

Code

function drupagram_user_settings($account) {
  module_load_include('inc', 'drupagram');
  $output = array();
  if (!empty($account->drupagram_accounts)) {
    $output['list_form'] = drupal_get_form('drupagram_account_list_form', $account->drupagram_accounts);
  }
  $output['form'] = drupal_get_form('drupagram_account_form', $account);
  return $output;
}