Use l() to create "Hierachy (change)" link in Species/breeds View. See #404
This commit is contained in:
parent
90be35202a
commit
f93d4bef58
|
@ -46,7 +46,7 @@ function farm_livestock_views_default_views() {
|
|||
$handler->display->display_options['header']['area_text_custom']['id'] = 'area_text_custom';
|
||||
$handler->display->display_options['header']['area_text_custom']['table'] = 'views';
|
||||
$handler->display->display_options['header']['area_text_custom']['field'] = 'area_text_custom';
|
||||
$handler->display->display_options['header']['area_text_custom']['content'] = '<h4>Hierarchy <small><a href="/admin/structure/taxonomy/farm_animal_types?destination=farm/assets/animals/types">(change)</a></small></h4>';
|
||||
$handler->display->display_options['header']['area_text_custom']['content'] = '<h4>Hierarchy <small>' . l('(change)', 'admin/structure/taxonomy/farm_animal_types', array('query' => array('destination' => 'farm/assets/animals/types'))) . '</small></h4>';
|
||||
/* No results behavior: Global: Unfiltered text */
|
||||
$handler->display->display_options['empty']['area_text_custom']['id'] = 'area_text_custom';
|
||||
$handler->display->display_options['empty']['area_text_custom']['table'] = 'views';
|
||||
|
@ -121,7 +121,7 @@ function farm_livestock_views_default_views() {
|
|||
t('Sort by'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('<h4>Hierarchy <small><a href="/admin/structure/taxonomy/farm_animal_types?destination=farm/assets/animals/types">(change)</a></small></h4>'),
|
||||
t('<h4>Hierarchy <small>' . l('(change)', 'admin/structure/taxonomy/farm_animal_types', array('query' => array('destination' => 'farm/assets/animals/types'))) . '</small></h4>'),
|
||||
t('No types found.'),
|
||||
t('Parent'),
|
||||
t('field_farm_animal_type'),
|
||||
|
|
Loading…
Reference in New Issue