You are here

users_export.module in Users Export 7

Same filename and directory in other branches
  1. 8 users_export.module
  2. 7.2 users_export.module

Base module file for users_export

users_export Users Export

File

users_export.module
View source
<?php

// $Id$

/**
 * @file
 * Base module file for users_export
 *
 * @defgroup users_export Users Export
 * @{
 */

/**
 * Implements hook_menu().
 */
function users_export_menu() {
  $items = array();
  $items['admin/people/export'] = array(
    'title' => 'Export',
    'description' => 'Export userlist as flatfile.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'users_export_form',
    ),
    'file' => 'users_export.admin.inc',
    'access arguments' => array(
      'administer users',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}

/**
 * Implement hook_views_api().
 */
function users_export_views_api($module, $api) {
  if ($module == 'views' && $api == 'views_default') {
    return array(
      'version' => 2,
    );
  }
}

/**
 * Implements hook_theme
 */
function users_export_theme($existing, $type, $theme, $path) {
  return array(
    'users_export_flatfile' => array(
      'variables' => array(
        'header' => NULL,
        'rows' => NULL,
        'type' => NULL,
        'html' => FALSE,
        'prefix' => '',
        'suffix' => '',
      ),
      'file' => 'users_export.admin.inc',
    ),
  );
}

Functions

Namesort descending Description
users_export_menu Implements hook_menu().
users_export_theme Implements hook_theme
users_export_views_api Implement hook_views_api().