array( 'farm_input' => array( 'label' => t('Input'), 'label_plural' => t('Inputs'), 'view' => 'farm_log_input', 'areas' => TRUE, ), ), ); } /** * Implements hook_farm_ui_taxonomy_views(). */ function farm_log_input_farm_ui_taxonomy_views($term) { // If the term is not an area, bail. if ($term->vocabulary_machine_name != 'farm_areas') { return array(); } // Return a list of Views to include on Areas. return array( array( 'name' => 'farm_log_input', 'arg' => 2, ), ); }