t('Upload Media'), 'href' => 'admin/workbench/media/add', 'localized_options' => array(), 'description' => t('Add photos, videos, audio, or other files to the site.'), ) ); $output['field_workbench_create_media'] = array( '#title' => t('Create Media'), '#markup' => theme('node_add_list', array('content' => $items)), '#theme' => 'workbench_element', '#weight' => -1, ); } } /** * Return Workbench status information in a block. * * To reduce clutter, modules are encouraged to use this hook * to provide debugging and other relevant information. * * @return * An array of message strings to print. The preferred format * is a one line string in the format Title: Message. * @see workbench_block_view(). */ function hook_workbench_block() { // Add editing information to this page (if it's a node). if ($node = menu_get_object()) { if (node_access('update', $node)) { return array(t('My Module: You may not edit this content.')); } else { return array(t('My Module: You may edit this content.')); } } }