function entity_share_ui_share_page in Entity Share 7
Page builder.
Parameters
array $nids: Node ids to share.
Return value
array|string Render.
1 call to entity_share_ui_share_page()
- entity_share_ui_share_action in modules/
entity_share_ui/ modules/ entity_share_ui_client/ entity_share_ui_client.share.admin.inc - Node operation or action callback.
1 string reference to 'entity_share_ui_share_page'
- entity_share_ui_client_menu in modules/
entity_share_ui/ modules/ entity_share_ui_client/ entity_share_ui_client.module - Implements hook_menu().
File
- modules/
entity_share_ui/ modules/ entity_share_ui_client/ entity_share_ui_client.share.admin.inc, line 32 - Entity Share UI Client Admin Share file.
Code
function entity_share_ui_share_page(array $nids = array()) {
drupal_set_title(t('Share the contents'), PASS_THROUGH);
// Check nodes.
if (empty($nids)) {
if (empty($_POST['nids'])) {
drupal_set_message(t('Invalid parameters !'), 'error');
return array(
'#markup' => '',
);
}
else {
$nids = explode(',', $_POST['nids']);
}
}
$nodes_table = entity_share_ui_node_list($nids);
// Form.
$form = drupal_get_form('entity_share_ui_share_action_form', $nids);
return theme('entity_share_form_choose_endpoint_page', array(
'nodes_table' => $nodes_table,
'form' => $form,
));
}