Menu

Export all user mail addresses to CSV



/**
 * Implements hook_menu().
 */
function export_mails_menu() {
  return array(
    'export_mails.csv' => array(
      'page callback' => '_export_mails',
      'access callback' => 'user_is_logged_in',
    ),
  );
}

/**
 * Implements hook_block_info().
 */
function export_mails_block_info() {

  $blocks['export_mails'] = array(
    'info' => t('Export mails'),
  );

  return $blocks;

}

/**
 * Implements hook_block_view().
 */
function export_mails_block_view($delta) {
  switch ($delta) {
    case 'export_mails' :
      return array(

Bulk create menu lnks


$items = array(
    array(
      'link_path' => '<front>',
      'link_title' => 'TITLE',
      'menu_name' => 'footer-menu',
    ),
    array(
      'link_path' => '<front>',
      'link_title' => 'TITLE',
      'menu_name' => 'footer-menu',
    ),
    array(
      'link_path' => '<front>',
      'link_title' => 'TITLE',
      'menu_name' => 'footer-menu',
    ),
    array(
      'link_path' => '<front>',
      'link_title' => 'TITLE',
      'menu_name' => 'footer-menu',
  );
 

Create a page

Create a page which can only be accessed by user roles with the appropriate permission.

Subscribe to RSS - Menu