| 1 |
<?php |
<?php |
| 2 |
// $Id: seochecklist.admin.inc,v 1.4 2009/10/22 23:57:52 davereid Exp $ |
// $Id: seochecklist.admin.inc,v 1.5 2009/10/23 00:00:15 davereid Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Define the settings form. |
* Define the settings form. |
| 52 |
$row->links[] = l(t('Configure'), $row->configure); |
$row->links[] = l(t('Configure'), $row->configure); |
| 53 |
} |
} |
| 54 |
|
|
| 55 |
|
if (variable_get('seo_checklist_book_references', 1) && $page = seochecklist_get_book_references($row->id)) { |
| 56 |
|
$row->links[] = t('SEO book page @page', array('@page' => $page)); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
$form['group_' . $group_id]['seochecklist_nodetypes_' . intval($row->id)] = array( |
$form['group_' . $group_id]['seochecklist_nodetypes_' . intval($row->id)] = array( |
| 60 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 61 |
'#title' => t($row->name), |
'#title' => t($row->name), |
| 69 |
} |
} |
| 70 |
} |
} |
| 71 |
|
|
| 72 |
$form['bottom_code'] = array( |
$form['extras'] = array( |
| 73 |
'#type' => 'fieldset', |
'#type' => 'fieldset', |
| 74 |
'#title' => t('Extras'), |
'#title' => t('Extras'), |
| 75 |
'#collapsible' => TRUE, |
'#collapsible' => TRUE, |
| 76 |
); |
); |
| 77 |
$form['bottom_code']['seo_checklist_link'] = array( |
$form['extras']['seo_checklist_link'] = array( |
| 78 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 79 |
'#title' => t("Link to Volacci to thank them for this awesome module. <strong>Don't forget to click Save!</strong>"), |
'#title' => t("Link to Volacci to thank them for this awesome module. <strong>Don't forget to click Save!</strong>"), |
| 80 |
'#description' => t("A small link will appear at the very bottom of your website. You can disable it at any time by un-checking this box. We really appreciate it!!!"), |
'#description' => t("A small link will appear at the very bottom of your website. You can disable it at any time by un-checking this box. We really appreciate it!!!"), |
| 81 |
'#default_value' => variable_get('seo_checklist_link', 0), |
'#default_value' => variable_get('seo_checklist_link', 0), |
| 82 |
); |
); |
| 83 |
$form['bottom_code']['seo_checklist_thanks'] = array( |
$form['extras']['seo_checklist_thanks'] = array( |
| 84 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 85 |
'#title' => t("Link to us then send us feedback on the Drupal 6 SEO Checklist module or just say \"Thanks!\" and we will link to you from our website. Send your feedback and link information to !email. (If you don't know why you should link with other websites, read this: !link.)", array('!email' => l('seochecklist@volacci.com', 'mailto:seochecklist@volacci.com'), '!link' => l('Why links help SEO', 'http://www.volacci.com/why-links-help-seo'))), |
'#title' => t("Link to us then send us feedback on the Drupal 6 SEO Checklist module or just say \"Thanks!\" and we will link to you from our website. Send your feedback and link information to !email. (If you don't know why you should link with other websites, read this: !link.)", array('!email' => l('seochecklist@volacci.com', 'mailto:seochecklist@volacci.com'), '!link' => l('Why links help SEO', 'http://www.volacci.com/why-links-help-seo'))), |
| 86 |
'#default_value' => variable_get('seo_checklist_thanks', 0), |
'#default_value' => variable_get('seo_checklist_thanks', 0), |
| 87 |
); |
); |
| 88 |
$form['bottom_code']['seo_checklist_podcast'] = array( |
$form['extras']['seo_checklist_podcast'] = array( |
| 89 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 90 |
'#title' => t("Listen to the Volacci Drupal SEO Podcast for more tips and tricks about Drupal SEO: !link", array('!link' => l('http://www.volacci.com/podcast', 'http://www.volacci.com/podcast'))), |
'#title' => t("Listen to the Volacci Drupal SEO Podcast for more tips and tricks about Drupal SEO: !link", array('!link' => l('http://www.volacci.com/podcast', 'http://www.volacci.com/podcast'))), |
| 91 |
'#default_value' => variable_get('seo_checklist_podcast', 0), |
'#default_value' => variable_get('seo_checklist_podcast', 0), |
| 92 |
); |
); |
| 93 |
|
$form['extras']['seo_checklist_book_references'] = array( |
| 94 |
|
'#type' => 'checkbox', |
| 95 |
|
'#title' => t('Include page number references from the <a href="@book-link">Drupal 6 SEO Book</a> by Ben Finklea.', array('@book-link' => 'http://www.drupalseobook.com/')), |
| 96 |
|
'#default_value' => variable_get('seo_checklist_book_references', 1), |
| 97 |
|
); |
| 98 |
|
|
| 99 |
$form['save'] = array( |
$form['save'] = array( |
| 100 |
'#type' => 'submit', |
'#type' => 'submit', |
| 101 |
'#value' => t('Save'), |
'#value' => t('Save'), |
| 102 |
'#weight' => 10, |
'#weight' => 100, |
| 103 |
); |
); |
| 104 |
|
|
| 105 |
return $form; |
return $form; |
| 127 |
variable_set('seo_checklist_link', $form_state['values']['seo_checklist_link']); |
variable_set('seo_checklist_link', $form_state['values']['seo_checklist_link']); |
| 128 |
variable_set('seo_checklist_thanks', $form_state['values']['seo_checklist_thanks']); |
variable_set('seo_checklist_thanks', $form_state['values']['seo_checklist_thanks']); |
| 129 |
variable_set('seo_checklist_podcast', $form_state['values']['seo_checklist_podcast']); |
variable_set('seo_checklist_podcast', $form_state['values']['seo_checklist_podcast']); |
| 130 |
|
variable_set('seo_checklist_book_references', $form_state['values']['seo_checklist_book_references']); |
| 131 |
} |
} |