You are here

function drupagram_user_settings in Drupagram 6

Same name and namespace in other branches
  1. 7 drupagram.pages.inc \drupagram_user_settings()
1 string reference to 'drupagram_user_settings'
drupagram_menu in ./drupagram.module
Implementation hook_menu().

File

./drupagram.pages.inc, line 56
Provieds drupagram forms.

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['list_form'] . $output['form'];
}