aggregator_entity_extra_field_info()
Implements hook_entity_extra_field_info().
File
- core/modules/aggregator/aggregator.module, line 83
- Used to aggregate syndicated content (RSS, RDF, and Atom).
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | function aggregator_entity_extra_field_info() { $extra = array (); $extra [ 'aggregator_feed' ][ 'aggregator_feed' ] = array ( 'display' => array ( 'items' => array ( 'label' => t( 'Items' ), 'description' => t( 'Items associated with this feed' ), 'weight' => 0, ), // @todo Move to a formatter at https://www.drupal.org/node/2339917. 'image' => array ( 'label' => t( 'Image' ), 'description' => t( 'The feed image' ), 'weight' => 2, ), // @todo Move to a formatter at https://www.drupal.org/node/2149845. 'description' => array ( 'label' => t( 'Description' ), 'description' => t( 'The description of this feed' ), 'weight' => 3, ), 'more_link' => array ( 'label' => t( 'More link' ), 'description' => t( 'A more link to the feed detail page' ), 'weight' => 5, ), 'feed_icon' => array ( 'label' => t( 'Feed icon' ), 'description' => t( 'An icon that links to the feed URL' ), 'weight' => 6, ), ), ); $extra [ 'aggregator_item' ][ 'aggregator_item' ] = array ( 'display' => array ( // @todo Move to a formatter at https://www.drupal.org/node/2149845. 'description' => array ( 'label' => t( 'Description' ), 'description' => t( 'The description of this feed item' ), 'weight' => 2, ), ), ); return $extra ; } |
Please login to continue.