You are here

function __drush_exif_list_active_types in Exif 7

Same name and namespace in other branches
  1. 8.2 exif.drush.inc \__drush_exif_list_active_types()
  2. 8 exif.drush.inc \__drush_exif_list_active_types()
2 calls to __drush_exif_list_active_types()
drush_exif_list in ./exif.drush.inc
Drush callback;
drush_exif_update in ./exif.drush.inc
Drush callback;

File

./exif.drush.inc, line 33

Code

function __drush_exif_list_active_types() {
  $types = array();

  //fill up array with checked nodetypes
  foreach (variable_get('exif_nodetypes', array()) as $type) {
    if ($type != "0") {
      $types[] = array(
        'entity' => 'node',
        'type' => $type,
      );
    }
  }
  foreach (variable_get('exif_mediatypes', array()) as $type) {
    if ($type != "0") {
      $types[] = array(
        'entity' => 'file',
        'type' => $type,
      );
    }
  }
  return $types;
}