function linkit_dashboard_page in Linkit 7.3
Same name and namespace in other branches
- 6 linkit.module \linkit_dashboard_page()
- 7 linkit.module \linkit_dashboard_page()
Creates the dialog dashboard.
We don't call drupal_get_form() in the menu callback as we don't want to return the rendered form, we just want to print it as it is.
Parameters
$profile: A LinkitProfile object.
1 string reference to 'linkit_dashboard_page'
- linkit_menu in ./
linkit.module - Implements hook_menu().
File
- ./
linkit.module, line 529 - Main file for Linkit module.
Code
function linkit_dashboard_page(LinkitProfile $profile) {
// Set the active Linkit profile.
linkit_set_active_profile($profile);
// The dashboard isn't really a form.
// See comment in linkit_dashboard_form() for more info.
$form = drupal_get_form('linkit_dashboard_form');
//$change_profile = drupal_get_form('linkit_dashboad_profile_change_form');
return array(
'#type' => 'ajax',
'#commands' => array(
ajax_command_html('#linkit-modal', drupal_render($form)),
ajax_command_prepend('#linkit-modal', theme('status_messages')),
),
);
}