function globallink_dashboard_pager_form in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.7 globallink_send_translations.inc \globallink_dashboard_pager_form()
- 7.6 globallink_send_translations.inc \globallink_dashboard_pager_form()
Builds form to add pagination to GlobalLink send dashboard.
1 string reference to 'globallink_dashboard_pager_form'
- globallink_dashboard_page in ./
globallink_send_translations.inc - Builds forms on GlobalLink send dashboard.
File
- ./
globallink_send_translations.inc, line 441
Code
function globallink_dashboard_pager_form() {
$form = array();
$locales = globallink_get_mapped_drupal_locales(FALSE);
// $node_types = globallink_get_translatable_node_types(TRUE);
if (isset($locales) && count($locales) > 1) {
// if (isset($node_types) && count($node_types) > 0) {
$form['page_counter']['markup'] = array(
'#type' => 'container',
'#attributes' => array(
'class' => array(
'tpt-center',
),
),
);
$form['page_counter']['markup']['p_count'] = array(
'#type' => 'textfield',
'#size' => 5,
'#default_value' => isset($_SESSION['globallink_send_page_count']) ? $_SESSION['globallink_send_page_count'][0] : TPT_PAGER_LIMIT,
'#field_prefix' => t('Show') . ' ',
'#field_suffix' => ' ' . t('records') . ' ',
'#prefix' => '<div class="container-inline">',
);
$form['page_counter']['markup']['action'] = array(
'#type' => 'submit',
'#value' => t('Go'),
'#suffix' => '</div>',
'#limit_validation_errors' => array(),
'#submit' => array(
'globallink_node_form_pager_submit',
),
'#access' => TRUE,
);
// }
}
return $form;
}