function tripal_contact_admin_contact_view
2.x tripal_contact.admin.inc | tripal_contact_admin_contact_view() |
3.x tripal_contact.admin.inc | tripal_contact_admin_contact_view() |
Launchpage for contact administration. Makes sure views are enabled and if not provides links to enable them.
1 string reference to 'tripal_contact_admin_contact_view'
- tripal_contact_menu in legacy/
tripal_contact/ tripal_contact.module - Implemets hook_menu(). Adds menu items for the tripal_contact module menu. This section gives the outline for the main menu of the Tripal-contact module
File
- legacy/
tripal_contact/ includes/ tripal_contact.admin.inc, line 15 - Handle administration of contacts.
Code
function tripal_contact_admin_contact_view() {
$output = '';
// set the breadcrumb
$breadcrumb = array();
$breadcrumb[] = l('Home', '<front>');
$breadcrumb[] = l('Administration', 'admin');
$breadcrumb[] = l('Tripal', 'admin/tripal');
$breadcrumb[] = l('Chado', 'admin/tripal/legacy');
$breadcrumb[] = l('Contacts', 'admin/tripal/legacy/tripal_contact');
drupal_set_breadcrumb($breadcrumb);
// Add the view
$view = views_embed_view('tripal_contact_admin_contacts', 'default');
if (isset($view)) {
$output .= $view;
}
else {
$output .= '<p>The Contact module uses primarily views to provide an '
. 'administrative interface. Currently one or more views needed for this '
. 'administrative interface are disabled. <strong>Click each of the following links to '
. 'enable the pertinent views</strong>:</p>';
$output .= '<ul>';
$output .= '<li>' . l('Contacts View', 'admin/tripal/legacy/tripal_contact/views/contacts/enable') . '</li>';
$output .= '</ul>';
}
return $output;
}