| 1 |
<?php |
<?php |
| 2 |
// $Id: page_title.admin.inc,v 1.1.2.6 2009/06/11 09:20:03 njt1982 Exp $ |
// $Id: page_title.admin.inc,v 1.1.2.7 2009/06/11 10:26:49 njt1982 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 35 |
|
|
| 36 |
// Define the basic scope column values |
// Define the basic scope column values |
| 37 |
$form['patterns']['scope'] = array( |
$form['patterns']['scope'] = array( |
| 38 |
'page_title_default' => array('#type' => 'markup', '#value' => t('Global Only'),), |
'page_title_default' => array('#type' => 'markup', '#value' => t('Global Only'), ), |
| 39 |
'page_title_front' => array('#type' => 'markup', '#value' => t('Global Only'),), |
'page_title_front' => array('#type' => 'markup', '#value' => t('Global Only'), ), |
| 40 |
'page_title_user' => array('#type' => 'markup', '#value' => t('User'),), |
'page_title_user' => array('#type' => 'markup', '#value' => t('User'), ), |
| 41 |
); |
); |
| 42 |
|
|
| 43 |
// Define the 'default' token patterns |
// Define the 'default' token patterns |
| 80 |
'#default_value' => variable_get($key .'_showfield', 0), |
'#default_value' => variable_get($key .'_showfield', 0), |
| 81 |
) + $showfield_form_element; |
) + $showfield_form_element; |
| 82 |
|
|
| 83 |
$form['patterns']['scope'][$key] = array('#type' => 'markup', '#value' => t('Node'),); |
$form['patterns']['scope'][$key] = array('#type' => 'markup', '#value' => t('Node'), ); |
| 84 |
} |
} |
| 85 |
|
|
| 86 |
|
|
| 101 |
'#default_value' => variable_get($key .'_showfield', 0), |
'#default_value' => variable_get($key .'_showfield', 0), |
| 102 |
) + $showfield_form_element; |
) + $showfield_form_element; |
| 103 |
|
|
| 104 |
$form['patterns']['scope'][$key] = array('#type' => 'markup', '#value' => t('Taxonomy'),); |
$form['patterns']['scope'][$key] = array('#type' => 'markup', '#value' => t('Taxonomy'), ); |
| 105 |
} |
} |
| 106 |
} |
} |
| 107 |
|
|
| 113 |
'#default_value' => variable_get($key, ''), |
'#default_value' => variable_get($key, ''), |
| 114 |
) + $pattern_form_element; |
) + $pattern_form_element; |
| 115 |
|
|
| 116 |
$form['patterns']['scope'][$key] = array('#type' => 'markup', '#value' => t('User'),); |
$form['patterns']['scope'][$key] = array('#type' => 'markup', '#value' => t('User'), ); |
| 117 |
} |
} |
| 118 |
|
|
| 119 |
// Define the page pattern text field. This is appended to any page requests containing 'page=[0-9]+' in the query string |
// Define the page pattern text field. This is appended to any page requests containing 'page=[0-9]+' in the query string |