[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/image/contrib/image_import/ -> image_import.module (source)

   1  <?php
   2  // $Id: image_import.module,v 1.21.2.1 2010/08/03 17:43:00 sun Exp $
   3  
   4  /**
   5   * Implementation of hook_help().
   6   */
   7  function image_import_help($path, $arg) {
   8    switch ($path) {
   9      case 'admin/content/image_import':
  10        $output = '<p>';
  11        $output .= t("Import multiple image files and save them as image nodes. The files will be moved from their location into the image module's files directory. Searching for image files in %dirpath.", array(
  12          '%dirpath' => realpath(variable_get('image_import_path', '')),
  13        ));
  14        $output .= '</p>';
  15        return $output;
  16    }
  17  }
  18  
  19  /**
  20   * Implementation of hook_perm().
  21   */
  22  function image_import_perm() {
  23    return array('import images');
  24  }
  25  
  26  /**
  27   * Implementation of hook_menu().
  28   */
  29  function image_import_menu() {
  30    $items['admin/content/image_import'] = array(
  31      'title' => 'Image import',
  32      'description' => 'Import image from the filesystem.',
  33      'page callback' => 'drupal_get_form',
  34      'page arguments' => array('image_import_form'),
  35      'file' => 'image_import.pages.inc',
  36      'access arguments' => array('import images'),
  37      'type' => MENU_NORMAL_ITEM,
  38    );
  39    $items['admin/settings/image/image_import'] = array(
  40      'title' => 'Image import',
  41      'description' => 'Change settings for the Image Import module.',
  42      'page callback' => 'drupal_get_form',
  43      'page arguments' => array('image_import_admin_settings'),
  44      'file' => 'image_import.admin.inc',
  45      'access arguments' => array('administer site configuration'),
  46      'type' => MENU_LOCAL_TASK,
  47    );
  48    return $items;
  49  }
  50  
  51  /**
  52   * Implementation of hook_theme().
  53   */
  54  function image_import_theme() {
  55    return array(
  56      'image_import_form' => array(
  57        'arguments' => array('form'),
  58        'file' => 'image_import.admin.inc',
  59      ),
  60    );
  61  }
  62  


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7