seo_checklist.module 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. <?php
  2. /**
  3. * @file
  4. * Track important SEO techniques on the website.
  5. */
  6. /**
  7. * Checks whether the Volacci footer link is enabled.
  8. *
  9. * @return bool
  10. * Returns TRUE if the footer link is enabled or FALSE if not.
  11. */
  12. function _seo_checklist_volacci_link_is_enabled() {
  13. $link_is_enabled = &drupal_static(__FUNCTION__);
  14. if (!isset($link_is_enabled)) {
  15. $saved_progress = variable_get('checklistapi_checklist_seo_checklist', array());
  16. $link_is_enabled = !empty($saved_progress['link_to_volacci']);
  17. }
  18. return $link_is_enabled;
  19. }
  20. /**
  21. * Implements hook_form_FORM_ID_alter().
  22. */
  23. function seo_checklist_form_checklistapi_checklist_form_alter(&$form, &$form_state, $form_id) {
  24. if ($form['#checklist']->id == 'seo_checklist') {
  25. $form['checklistapi']['#attached']['js'][] = drupal_get_path('module', 'seo_checklist') . '/seo_checklist.js';
  26. $form['checklistapi']['#attached']['css'][] = drupal_get_path('module', 'seo_checklist') . '/seo_checklist.css';
  27. }
  28. }
  29. /**
  30. * Implements hook_checklistapi_checklist_info().
  31. */
  32. function seo_checklist_checklistapi_checklist_info() {
  33. $modules_page = array('#text' => t('Enable'), '#path' => 'admin/modules');
  34. $definitions = array();
  35. $definitions['seo_checklist'] = array(
  36. '#title' => t('SEO checklist'),
  37. '#description' => t('Keep track of your Drupal Search Engine Optimization tasks.'),
  38. '#path' => 'admin/config/search/seo-checklist',
  39. '#help' => t("<p>Check off each SEO-related task as you complete it. Don't forget to click the <em>Save</em> button!</p>"),
  40. // Introduction.
  41. 'introduction' => array(
  42. '#title' => t('Introduction'),
  43. '#description' => theme('seo_checklist_intro_tab', array(
  44. 'volacci_logo' => theme('image', array(
  45. 'path' => drupal_get_path('module', 'seo_checklist') . '/volacci-logo.png',
  46. 'alt' => t('Volacci'),
  47. 'title' => t('Volacci'),
  48. )),
  49. )),
  50. ),
  51. // Tools.
  52. 'tools' => array(
  53. '#title' => t('Tools (optional)'),
  54. '#description' => t('<p>While not strictly necessary for SEO, these modules will accelerate your work.</p>'),
  55. 'install_admin_menu' => array(
  56. '#title' => t('[Optional] Install Administration menu module.'),
  57. '#default_value' => module_exists('admin_menu'),
  58. 'project_page' => array(
  59. '#text' => t('Download'),
  60. '#path' => 'http://drupal.org/project/admin_menu',
  61. ),
  62. 'modules_page' => $modules_page,
  63. ),
  64. 'install_drush' => array(
  65. '#title' => t('[Optional] Install Drush.'),
  66. '#description' => t('Drush is a command line tool for Drupal that you can use, among other things, to <a href="http://vimeo.com/5207683">install modules faster</a>.'),
  67. 'project_page' => array(
  68. '#text' => t('Download and install'),
  69. '#path' => 'http://drupal.org/project/drush',
  70. ),
  71. ),
  72. 'install_module_filter' => array(
  73. '#title' => t('[Optional] Install Module Filter module.'),
  74. '#default_value' => module_exists('module_filter'),
  75. 'project_page' => array(
  76. '#text' => t('Download'),
  77. '#path' => 'http://drupal.org/project/module_filter',
  78. ),
  79. 'modules_page' => $modules_page,
  80. ),
  81. ),
  82. // Page titles and meta tags.
  83. 'page_titles_meta_tags' => array(
  84. '#title' => t('Page titles and meta tags'),
  85. '#description' => t('<p>Search engines look at your <code>TITLE</code> tags and certain meta data to determine what your site is about. These modules give you control over this important information.</p>'),
  86. 'install_metatag' => array(
  87. '#title' => t('Install Meta tags module.'),
  88. '#default_value' => module_exists('metatag'),
  89. 'project_page' => array(
  90. '#text' => t('Download'),
  91. '#path' => 'http://drupal.org/project/metatag',
  92. ),
  93. 'modules_page' => $modules_page,
  94. ),
  95. 'configure_metatag' => array(
  96. '#title' => t('Configure Meta tags module.'),
  97. '#description' => t('If local SEO is important to you, add geo meta tags.'),
  98. 'config_page' => array(
  99. '#text' => t('Configure'),
  100. '#path' => 'admin/config/search/metatags',
  101. ),
  102. ),
  103. 'install_metatags_quick' => array(
  104. '#title' => t('[Optional] Install Meta tags quick module.'),
  105. '#description' => t("If you want to add meta tags to non-node entities, you'll need this module for now."),
  106. '#default_value' => module_exists('metatags_quick'),
  107. 'project_page' => array(
  108. '#text' => t('Download'),
  109. '#path' => 'http://drupal.org/project/metatags_quick',
  110. ),
  111. 'modules_page' => $modules_page,
  112. ),
  113. 'configure_metatags_quick' => array(
  114. '#title' => t('[Optional] Configure Meta tags quick module.'),
  115. 'config_page' => array(
  116. '#text' => t('Configure'),
  117. '#path' => 'admin/config/search/metatags_quick',
  118. ),
  119. ),
  120. ),
  121. // URL paths.
  122. 'url_paths' => array(
  123. '#title' => t('URL paths'),
  124. '#description' => t("<p>Search engines use your site's URLs to help determine structure, organization, and topical relevance.</p>"),
  125. 'enable_clean_urls' => array(
  126. '#title' => t('Enable clean URLs.'),
  127. '#default_value' => variable_get('clean_url', 0),
  128. 'config_page' => array(
  129. '#text' => t('Configure'),
  130. '#path' => 'admin/config/search/clean-urls',
  131. ),
  132. 'more_info' => array(
  133. '#text' => t('More info'),
  134. '#path' => 'http://drupal.org/getting-started/clean-urls',
  135. ),
  136. ),
  137. 'install_pathauto' => array(
  138. '#title' => t('Install Pathauto module.'),
  139. '#default_value' => module_exists('pathauto'),
  140. 'project_page' => array(
  141. '#text' => t('Download'),
  142. '#path' => 'http://drupal.org/project/pathauto',
  143. ),
  144. 'modules_page' => $modules_page,
  145. ),
  146. 'configure_pathauto' => array(
  147. '#title' => t('Configure Pathauto module.'),
  148. 'config_page' => array(
  149. '#text' => t('Configure'),
  150. '#path' => 'admin/config/search/path/patterns',
  151. ),
  152. ),
  153. 'install_globalredirect' => array(
  154. '#title' => t('Install Global Redirect module.'),
  155. '#default_value' => module_exists('globalredirect'),
  156. 'project_page' => array(
  157. '#text' => t('Download'),
  158. '#path' => 'http://drupal.org/project/globalredirect',
  159. ),
  160. 'modules_page' => $modules_page,
  161. ),
  162. 'install_redirect' => array(
  163. '#title' => t('Install Redirect module.'),
  164. '#default_value' => module_exists('redirect'),
  165. 'project_page' => array(
  166. '#text' => t('Download'),
  167. '#path' => 'http://drupal.org/project/redirect',
  168. ),
  169. 'modules_page' => $modules_page,
  170. ),
  171. ),
  172. // Create search engine accounts.
  173. 'search_engine_accounts' => array(
  174. '#title' => t('Create search engine accounts'),
  175. '#description' => t("<p>Set your site up with the search engines. You'll need these accounts for later steps in the SEO Checklist but also to help you communicate and evaluate your site on an ongoing basis.</p>"),
  176. 'get_google_account' => array(
  177. '#title' => t('Get a Google account.'),
  178. 'create_account' => array(
  179. '#text' => t('Create account'),
  180. '#path' => 'https://www.google.com/accounts/NewAccount',
  181. ),
  182. ),
  183. 'get_windows_live_id' => array(
  184. '#title' => t('Get a Windows Live ID.'),
  185. 'create_account' => array(
  186. '#text' => t('Create account'),
  187. '#path' => 'https://signup.live.com/',
  188. ),
  189. ),
  190. ),
  191. // Track your visitors.
  192. 'track_visitors' => array(
  193. '#title' => t('Track your visitors'),
  194. '#description' => t('<p>See where your visitors are coming from and what they do while visiting your site.</p>'),
  195. 'install_google_analytics' => array(
  196. '#title' => t('Install Google Analytics module.'),
  197. '#default_value' => module_exists('googleanalytics'),
  198. 'project_page' => array(
  199. '#text' => t('Download'),
  200. '#path' => 'http://drupal.org/project/google_analytics',
  201. ),
  202. 'modules_page' => $modules_page,
  203. ),
  204. 'create_google_analytics_analytics' => array(
  205. '#title' => t('Sign in to your Google Analytics account and create an Analytics for your website.'),
  206. '#default_value' => $googleanalytics_account = (bool) variable_get('googleanalytics_account', 0),
  207. 'web_site' => array(
  208. '#text' => t('Google Analytics'),
  209. '#path' => 'http://www.google.com/analytics',
  210. ),
  211. ),
  212. 'input_google_analytics_code' => array(
  213. '#title' => t('Copy and paste your new Google Analytics code into the Google Analytics module.'),
  214. '#default_value' => $googleanalytics_account = (bool) variable_get('googleanalytics_account', 0),
  215. 'project_page' => array(
  216. '#text' => t('Module settings'),
  217. '#path' => 'admin/config/system/googleanalytics',
  218. ),
  219. ),
  220. 'authenticate_with_google_analytics' => array(
  221. '#title' => t('Authenticate your site with Google Analytics.'),
  222. 'web_site' => array(
  223. '#text' => t('Google Analytics'),
  224. '#path' => 'http://www.google.com/analytics',
  225. ),
  226. ),
  227. 'install_ga_tokenizer' => array(
  228. '#title' => t('Install Google Analytics Tokenizer module.'),
  229. '#default_value' => module_exists('ga_tokenizer'),
  230. 'project_page' => array(
  231. '#text' => t('Download'),
  232. '#path' => 'http://drupal.org/project/ga_tokenizer',
  233. ),
  234. ),
  235. 'install_contact_google_analytics' => array(
  236. '#title' => t('Install Google Analytics Contact Form, Webform, Rules Email module.'),
  237. '#default_value' => module_exists('contact_google_analytics'),
  238. 'project_page' => array(
  239. '#text' => t('Download'),
  240. '#path' => 'http://drupal.org/project/contact_google_analytics',
  241. ),
  242. 'modules_page' => $modules_page,
  243. ),
  244. 'configure_contact_google_analytics' => array(
  245. '#title' => t('Configure Google Analytics Contact Form, Webform, Rules Email module.'),
  246. '#default_value' => variable_get('contact_google_analytics_allowed_recipients', 'all') != 'all',
  247. 'config_page' => array(
  248. '#text' => t('Configure'),
  249. '#path' => 'admin/config/contact-google-analytics',
  250. ),
  251. ),
  252. 'install_context_keywords' => array(
  253. '#title' => t('Install Context Keywords module.'),
  254. '#default_value' => module_exists('context_keywords'),
  255. 'project_page' => array(
  256. '#text' => t('Download'),
  257. '#path' => 'http://drupal.org/project/context_keywords',
  258. ),
  259. ),
  260. ),
  261. // Content.
  262. 'content' => array(
  263. '#title' => t('Content'),
  264. '#description' => t('<p>Well-written content is important to the search engines. These modules help.</p>'),
  265. 'install_microdata' => array(
  266. '#title' => t('Install Microdata module.'),
  267. '#description' => t("Microdata enables you to share content with other sites and services, like Google's Recipe View, using inline metadata."),
  268. '#default_value' => module_exists('microdata'),
  269. 'config_page' => array(
  270. '#text' => t('Download module'),
  271. '#path' => 'http://drupal.org/project/microdata',
  272. ),
  273. 'modules_page' => $modules_page,
  274. ),
  275. 'configure_microdata' => array(
  276. '#title' => t('Configure Microdata module.'),
  277. 'project_page' => array(
  278. '#text' => t('Configure'),
  279. '#path' => 'admin/config/services/microdata',
  280. ),
  281. ),
  282. 'install_htmlpurifier' => array(
  283. '#title' => t('Install HTML Purifier module.'),
  284. '#description' => t('Follow the README!'),
  285. '#default_value' => module_exists('htmlpurifier'),
  286. 'readme' => array(
  287. '#text' => t('README.txt'),
  288. '#path' => 'http://drupalcode.org/project/htmlpurifier.git/blob/refs/heads/7.x-1.x:/INSTALL.txt',
  289. ),
  290. 'project_page' => array(
  291. '#text' => t('Download module'),
  292. '#path' => 'http://drupal.org/project/htmlpurifier',
  293. ),
  294. 'library_page' => array(
  295. '#text' => t('Download library'),
  296. '#path' => 'http://htmlpurifier.org/download',
  297. ),
  298. 'modules_page' => $modules_page,
  299. ),
  300. 'install_search404' => array(
  301. '#title' => t('Install Search 404 module.'),
  302. '#default_value' => module_exists('search404'),
  303. 'project_page' => array(
  304. '#text' => t('Download'),
  305. '#path' => 'http://drupal.org/project/search404',
  306. ),
  307. 'modules_page' => $modules_page,
  308. ),
  309. 'install_seo_checker' => array(
  310. '#title' => t('Install SEO Compliance Checker module.'),
  311. '#default_value' => module_exists('seo_checker'),
  312. 'project_page' => array(
  313. '#text' => t('Download'),
  314. '#path' => 'http://drupal.org/project/seo_checker',
  315. ),
  316. 'modules_page' => $modules_page,
  317. ),
  318. 'validate_html' => array(
  319. '#title' => t('Validate your markup.'),
  320. 'w3c_validator' => array(
  321. '#text' => t('W3C Markup Validation Service'),
  322. '#path' => 'http://validator.w3.org/',
  323. ),
  324. ),
  325. 'check_links' => array(
  326. '#title' => t('Check for broken links.'),
  327. 'w3c_link_checker' => array(
  328. '#text' => t('W3C Link Checker'),
  329. '#path' => 'http://validator.w3.org/checklink',
  330. ),
  331. ),
  332. ),
  333. // Submit your site to the search engines.
  334. 'submit_to_search_engines' => array(
  335. '#title' => t('Submit your site to the search engines'),
  336. '#description' => t("<p>Now that you've got your site ready for the search engines, use these tools to tell them you're ready for them to visit.</p>"),
  337. 'install_site_verify' => array(
  338. '#title' => t('Install Site verification module.'),
  339. '#default_value' => module_exists('site_verify'),
  340. 'project_page' => array(
  341. '#text' => t('Download'),
  342. '#path' => 'http://drupal.org/project/site_verify',
  343. ),
  344. 'modules_page' => $modules_page,
  345. ),
  346. 'add_verifications' => array(
  347. '#title' => t('Add verifications.'),
  348. 'config_page' => array(
  349. '#text' => t('Verifications'),
  350. '#path' => 'admin/config/search/verifications',
  351. ),
  352. ),
  353. 'install_xmlsitemap' => array(
  354. '#title' => t('Install XML Sitemap module.'),
  355. '#default_value' => module_exists('xmlsitemap'),
  356. 'project_page' => array(
  357. '#text' => t('Download'),
  358. '#path' => 'http://drupal.org/project/xmlsitemap',
  359. ),
  360. 'modules_page' => $modules_page,
  361. ),
  362. 'install_site_map' => array(
  363. '#title' => t('Install Site map module.'),
  364. '#default_value' => module_exists('site_map'),
  365. 'project_page' => array(
  366. '#text' => t('Download'),
  367. '#path' => 'http://drupal.org/project/site_map',
  368. ),
  369. 'modules_page' => $modules_page,
  370. ),
  371. 'authenticate_with_google' => array(
  372. '#title' => t('Authenticate with Google.'),
  373. 'webmaster_tools' => array(
  374. '#text' => t('Webmaster Tools'),
  375. '#path' => 'http://www.google.com/webmasters/tools',
  376. ),
  377. ),
  378. 'submit_xml_sitemap_to_google' => array(
  379. '#title' => t('Submit your XML sitemap to Google.'),
  380. 'webmaster_tools' => array(
  381. '#text' => t('Webmaster Tools'),
  382. '#path' => 'http://www.google.com/webmasters/tools',
  383. ),
  384. 'help_page' => array(
  385. '#text' => t('Help page'),
  386. '#path' => 'http://support.google.com/webmasters/bin/answer.py?hl=en&answer=183669&topic=8476&ctx=topic',
  387. ),
  388. ),
  389. 'authenticate_with_bing' => array(
  390. '#title' => t('Authenticate with Bing.'),
  391. 'webmaster_tools' => array(
  392. '#text' => t('Webmaster Tools'),
  393. '#path' => 'http://www.bing.com/webmaster/',
  394. ),
  395. ),
  396. 'submit_xml_sitemap_to_bing' => array(
  397. '#title' => t('Submit your XML sitemap to Bing.'),
  398. 'webmaster_tools' => array(
  399. '#text' => t('Submission page'),
  400. '#path' => 'http://www.bing.com/webmaster/submitsitepage.aspx',
  401. ),
  402. ),
  403. 'add_to_google_places' => array(
  404. '#title' => t('[Optional] Add your business to Google Places, if appropriate.'),
  405. 'google_places' => array(
  406. '#text' => t('Google Places'),
  407. '#path' => 'http://www.google.com/local/add/',
  408. ),
  409. ),
  410. ),
  411. // Other checklists.
  412. 'other_checklists' => array(
  413. '#title' => t('Other checklists'),
  414. '#description' => t('<p>These checklists are essential for additional important Internet Marketing related tasks for your website.</p>'),
  415. 'install_security_review' => array(
  416. '#title' => t('[Optional] Install Security Review module.'),
  417. '#description' => t('The more popular your website becomes, the more important good security will be.'),
  418. '#default_value' => module_exists('security_review'),
  419. 'project_page' => array(
  420. '#text' => t('Download'),
  421. '#path' => 'http://drupal.org/project/security_review',
  422. ),
  423. 'modules_page' => $modules_page,
  424. ),
  425. ),
  426. // Paid services.
  427. 'paid_services' => array(
  428. '#title' => t('Paid services (optional)'),
  429. '#description' => t('<p>There are many paid tools available to help you with your SEO and website maintenance. Here are some suggestions typically used by top Internet Marketing firms. At Volacci, we have tested and use all of these tools.</p>'),
  430. 'mollom_spam_prevention' => array(
  431. '#title' => t('[Optional] Mollom spam prevention'),
  432. '#description' => t('<p>If your site will get heavy use from visitors creating accounts, commenting and/or creating content then use Mollom.</p>'),
  433. 'register_page' => array(
  434. '#text' => t('Mollom website'),
  435. '#path' => 'http://mollom.com/',
  436. ),
  437. 'project_page' => array(
  438. '#text' => t('Download'),
  439. '#path' => 'http://drupal.org/project/mollom',
  440. ),
  441. 'modules_page' => $modules_page,
  442. 'config_page' => array(
  443. '#text' => t('Configure'),
  444. '#path' => 'admin/config/content/mollom',
  445. ),
  446. ),
  447. 'volacci_automatr' => array(
  448. '#title' => t('[Optional] Volacci Automatr&trade; marketing automation'),
  449. '#description' => t('<p>If you need marketing automation, lead scoring, advanced email marketing, and more, along with SalesForce or SugarCRM integration, then use <a href="@automatr_url">Volacci Automatr&trade;</a>. If, for some reason, Automatr&trade; does not work for you, consider <a href="@marketo_url">Marketo</a> or <a href="@eloqua_url">Eloqua</a>.</p>', array(
  450. '@automatr_url' => $automatr_url = 'http://automatr.volacci.com/?utm_source=seo_checklist&utm_medium=backend&utm_content=text&utm_campaign=volacci_automatr',
  451. '@marketo_url' => 'http://www.marketo.com/',
  452. '@eloqua_url' => 'http://www.eloqua.com/',
  453. )),
  454. 'automatr_website' => array(
  455. '#text' => t('Automatr website'),
  456. '#path' => $automatr_url,
  457. ),
  458. 'project_page' => array(
  459. '#text' => t('Download'),
  460. '#path' => 'http://drupal.org/project/automatr',
  461. ),
  462. 'modules_page' => $modules_page,
  463. 'config_page' => array(
  464. '#text' => t('Configure'),
  465. '#path' => 'admin/config/marketing/automatr',
  466. ),
  467. ),
  468. ),
  469. // Extras.
  470. 'extras' => array(
  471. '#title' => t('Extras (optional)'),
  472. 'install_scheduler' => array(
  473. '#title' => t('[Optional] Install Scheduler module.'),
  474. '#default_value' => module_exists('scheduler'),
  475. 'project_page' => array(
  476. '#text' => t('Download'),
  477. '#path' => 'http://drupal.org/project/scheduler',
  478. ),
  479. 'modules_page' => $modules_page,
  480. ),
  481. 'install_read_more' => array(
  482. '#title' => t('[Optional] Install Read More Link module.'),
  483. '#default_value' => module_exists('read_more'),
  484. 'project_page' => array(
  485. '#text' => t('Download'),
  486. '#path' => 'http://drupal.org/project/read_more',
  487. ),
  488. 'modules_page' => $modules_page,
  489. ),
  490. 'download_internet_marketing_whitepapers' => array(
  491. '#title' => t('[Optional] Download <a href="http://www.volacci.com/resources/whitepapers">free internet marketing whitepapers</a> from Volacci.'),
  492. ),
  493. 'link_to_volacci' => array(
  494. '#title' => t('[Optional] Link to <a href="http://www.volacci.com/">Volacci</a> to thank them for this awesome module.'),
  495. '#description' => t('Checking this item will cause a small link to appear at the very bottom of your website. You can disable it at any time by un-checking this box. We really appreciate it!'),
  496. ),
  497. 'send_feedback' => array(
  498. '#title' => t("[Optional] Send feedback on the Drupal 7 SEO Checklist or just say <em>Thanks!</em>, and we'll link to your web site from volacci.com."),
  499. '#description' => t("Remember to include your link information in your email. If you don't know why you should link with other websites, read <a href=\"http://www.volacci.com/why-links-help-seo\">Why links help SEO</a>."),
  500. 'email_link' => array(
  501. '#text' => t('seochecklist@volacci.com'),
  502. '#path' => 'mailto:seochecklist@volacci.com',
  503. ),
  504. ),
  505. 'read_drupal_6_seo_book' => array(
  506. '#title' => t('[Optional] Read Drupal 6 Search Engine Optimization by Ben Finklea.'),
  507. 'buy_from_amazon' => array(
  508. '#text' => t('Buy from Amazon'),
  509. '#path' => 'http://www.amazon.com/gp/product/1847198228?ie=UTF8&tag=dvdcentral02&linkCode=as2&camp=1789&creative=390957&creativeASIN=1847198228',
  510. ),
  511. 'buy_from_packt' => array(
  512. '#text' => t('Buy from Packt'),
  513. '#path' => 'https://www.packtpub.com/drupal-6-search-engine-optimization-seo/book?mid/170909568gh3',
  514. ),
  515. ),
  516. 'watch_drupalize_me_video' => array(
  517. '#title' => t('[Optional] Watch the free <a href="http://drupalize.me/videos/introduction-drupal-seo">Introduction to Drupal SEO</a> video from Lullabot.'),
  518. ),
  519. ),
  520. );
  521. return $definitions;
  522. }
  523. /**
  524. * Implements hook_init().
  525. */
  526. function seo_checklist_init() {
  527. if (_seo_checklist_volacci_link_is_enabled()) {
  528. drupal_add_css(drupal_get_path('module', 'seo_checklist') . '/seo_checklist.css');
  529. }
  530. }
  531. /**
  532. * Implements hook_page_alter().
  533. */
  534. function seo_checklist_page_alter(&$page) {
  535. if (_seo_checklist_volacci_link_is_enabled()) {
  536. $page['page_bottom']['seo_checklist_volacci_link'] = array(
  537. '#type' => 'markup',
  538. '#markup' => '<div id="seo-checklist-volacci-link"><a href="http://www.volacci.com/contact?utm_source=seo_checklist&amp;utm_medium=footer&amp;utm_campaign=volacci_seo">Drupal SEO</a></div>',
  539. );
  540. }
  541. }
  542. /**
  543. * Implements hook_theme().
  544. */
  545. function seo_checklist_theme($existing, $type, $theme, $path) {
  546. return array(
  547. 'seo_checklist_intro_tab' => array(
  548. 'template' => 'seo_checklist_intro_tab',
  549. 'variables' => array(
  550. 'volacci_logo' => t('Volacci'),
  551. ),
  552. ),
  553. );
  554. }