function globallink_block_active_pager_form in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_block/globallink_block_active_submissions.inc \globallink_block_active_pager_form()
Builds form to add pagination to block send dashboard.
1 string reference to 'globallink_block_active_pager_form'
- globallink_block_active_submissions in globallink_block/
globallink_block_active_submissions.inc - Builds forms on block active submissions dashboard.
File
- globallink_block/
globallink_block_active_submissions.inc, line 127
Code
function globallink_block_active_pager_form() {
$form = array();
$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_block_active_page_count']) ? $_SESSION['globallink_block_active_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_block_active_pager_form_submit',
),
'#access' => TRUE,
);
return $form;
}