Advertisement
asanchez75

variable/token_filter

Apr 10th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. http://www.drupalfoo.com/drupal-7-adding-custom-ui-maintainable-site-variables
  2. token_filter
  3. variable
  4.  
  5. ==============================================================
  6. function condesan_variable_info() {
  7. $variables['condesan_logo_path'] = array(
  8. // 'name' isn't really necessary, as it will get populated from the key of this array above.
  9. 'name' => 'logo',
  10. 'title' => t('CONDESAN logo'),
  11. 'type' => 'string',
  12. 'description' => t('Print logo of CONDESAN'),
  13. 'default' => base_path() . path_to_theme() . '/images/logo_condesan.jpg',
  14. 'token' => TRUE,
  15. );
  16. return $variables;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement