summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.18/sites/all/modules/seo_checklist/seo_checklist.module
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.18/sites/all/modules/seo_checklist/seo_checklist.module')
-rw-r--r--kolab.org/www/drupal-7.18/sites/all/modules/seo_checklist/seo_checklist.module316
1 files changed, 120 insertions, 196 deletions
diff --git a/kolab.org/www/drupal-7.18/sites/all/modules/seo_checklist/seo_checklist.module b/kolab.org/www/drupal-7.18/sites/all/modules/seo_checklist/seo_checklist.module
index 88e841a..82ba42e 100644
--- a/kolab.org/www/drupal-7.18/sites/all/modules/seo_checklist/seo_checklist.module
+++ b/kolab.org/www/drupal-7.18/sites/all/modules/seo_checklist/seo_checklist.module
@@ -46,15 +46,21 @@ function seo_checklist_checklistapi_checklist_info() {
// Introduction.
'introduction' => array(
'#title' => t('Introduction'),
- '#description' => theme('seo_checklist_intro_tab'),
+ '#description' => theme('seo_checklist_intro_tab', array(
+ 'volacci_logo' => theme('image', array(
+ 'path' => drupal_get_path('module', 'seo_checklist') . '/volacci-logo.png',
+ 'alt' => t('Volacci'),
+ 'title' => t('Volacci'),
+ )),
+ )),
),
// Tools.
'tools' => array(
- '#title' => t('Tools'),
+ '#title' => t('Tools (optional)'),
'#description' => t('<p>While not strictly necessary for SEO, these modules will accelerate your work.</p>'),
'install_admin_menu' => array(
- '#title' => t('Install Administration menu module.'),
+ '#title' => t('[Optional] Install Administration menu module.'),
'#default_value' => module_exists('admin_menu'),
'project_page' => array(
'#text' => t('Download'),
@@ -62,26 +68,16 @@ function seo_checklist_checklistapi_checklist_info() {
),
'modules_page' => $modules_page,
),
- 'install_elements' => array(
- '#title' => t('Install Elements module.'),
- '#default_value' => module_exists('elements'),
+ 'install_drush' => array(
+ '#title' => t('[Optional] Install Drush.'),
+ '#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>.'),
'project_page' => array(
- '#text' => t('Download'),
- '#path' => 'http://drupal.org/project/elements',
+ '#text' => t('Download and install'),
+ '#path' => 'http://drupal.org/project/drush',
),
- 'modules_page' => $modules_page,
- ),
- 'install_security_review' => array(
- '#title' => t('Install Security Review module.'),
- '#default_value' => module_exists('security_review'),
- 'project_page' => array(
- '#text' => t('Download'),
- '#path' => 'http://drupal.org/project/security_review',
- ),
- 'modules_page' => $modules_page,
),
'install_module_filter' => array(
- '#title' => t('Install Module Filter module.'),
+ '#title' => t('[Optional] Install Module Filter module.'),
'#default_value' => module_exists('module_filter'),
'project_page' => array(
'#text' => t('Download'),
@@ -91,24 +87,42 @@ function seo_checklist_checklistapi_checklist_info() {
),
),
- // Page titles.
- 'page_titles' => array(
- '#title' => t('Page titles'),
- '#description' => t('<p>The single most important thing you can do for on-site SEO.</p>'),
- 'install_page_title' => array(
- '#title' => t('Install Page Title module.'),
- '#default_value' => module_exists('page_title'),
+ // Page titles and meta tags.
+ 'page_titles_meta_tags' => array(
+ '#title' => t('Page titles and meta tags'),
+ '#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>'),
+ 'install_metatag' => array(
+ '#title' => t('Install Meta tags module.'),
+ '#default_value' => module_exists('metatag'),
'project_page' => array(
'#text' => t('Download'),
- '#path' => 'http://drupal.org/project/page_title',
+ '#path' => 'http://drupal.org/project/metatag',
),
'modules_page' => $modules_page,
),
- 'configure_page_title' => array(
- '#title' => t('Configure Page Title module.'),
+ 'configure_metatag' => array(
+ '#title' => t('Configure Meta tags module.'),
+ '#description' => t('If local SEO is important to you, add geo meta tags.'),
'config_page' => array(
'#text' => t('Configure'),
- '#path' => 'admin/config/search/page-title',
+ '#path' => 'admin/config/search/metatags',
+ ),
+ ),
+ 'install_metatags_quick' => array(
+ '#title' => t('[Optional] Install Meta tags quick module.'),
+ '#description' => t("If you want to add meta tags to non-node entities, you'll need this module for now."),
+ '#default_value' => module_exists('metatags_quick'),
+ 'project_page' => array(
+ '#text' => t('Download'),
+ '#path' => 'http://drupal.org/project/metatags_quick',
+ ),
+ 'modules_page' => $modules_page,
+ ),
+ 'configure_metatags_quick' => array(
+ '#title' => t('[Optional] Configure Meta tags quick module.'),
+ 'config_page' => array(
+ '#text' => t('Configure'),
+ '#path' => 'admin/config/search/metatags_quick',
),
),
),
@@ -116,7 +130,7 @@ function seo_checklist_checklistapi_checklist_info() {
// URL paths.
'url_paths' => array(
'#title' => t('URL paths'),
- '#description' => t('<p>The second most important thing you can do.</p>'),
+ '#description' => t("<p>Search engines use your site's URLs to help determine structure, organization, and topical relevance.</p>"),
'enable_clean_urls' => array(
'#title' => t('Enable clean URLs.'),
'#default_value' => variable_get('clean_url', 0),
@@ -168,7 +182,7 @@ function seo_checklist_checklistapi_checklist_info() {
// Create search engine accounts.
'search_engine_accounts' => array(
'#title' => t('Create search engine accounts'),
- '#description' => t("<p>Set yourself up with the search engines. You'll need these accounts for later steps.</p>"),
+ '#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>"),
'get_google_account' => array(
'#title' => t('Get a Google account.'),
'create_account' => array(
@@ -188,7 +202,7 @@ function seo_checklist_checklistapi_checklist_info() {
// Track your visitors.
'track_visitors' => array(
'#title' => t('Track your visitors'),
- '#description' => t('<p>Know where your visitors are coming from and what they do while visiting your site.</p>'),
+ '#description' => t('<p>See where your visitors are coming from and what they do while visiting your site.</p>'),
'install_google_analytics' => array(
'#title' => t('Install Google Analytics module.'),
'#default_value' => module_exists('googleanalytics'),
@@ -256,50 +270,26 @@ function seo_checklist_checklistapi_checklist_info() {
),
),
- // Page content.
- 'page_content' => array(
- '#title' => t('Page content'),
- '#description' => t('<p>Take control of your page content.</p>'),
- 'install_metatag' => array(
- '#title' => t('Install Meta tags module.'),
- '#default_value' => module_exists('metatag'),
- 'project_page' => array(
- '#text' => t('Download'),
- '#path' => 'http://drupal.org/project/metatag',
- ),
- 'modules_page' => $modules_page,
- ),
- 'configure_metatag' => array(
- '#title' => t('Configure Meta tags module.'),
+ // Content.
+ 'content' => array(
+ '#title' => t('Content'),
+ '#description' => t('<p>Well-written content is important to the search engines. These modules help.</p>'),
+ 'install_microdata' => array(
+ '#title' => t('Install Microdata module.'),
+ '#description' => t("Microdata enables you to share content with other sites and services, like Google's Recipe View, using inline metadata."),
+ '#default_value' => module_exists('microdata'),
'config_page' => array(
- '#text' => t('Configure'),
- '#path' => 'admin/config/search/metatags',
- ),
- ),
- 'install_metatags_quick' => array(
- '#title' => t('Install Meta tags quick module.'),
- '#default_value' => module_exists('metatags_quick'),
- 'project_page' => array(
- '#text' => t('Download'),
- '#path' => 'http://drupal.org/project/metatags_quick',
+ '#text' => t('Download module'),
+ '#path' => 'http://drupal.org/project/microdata',
),
'modules_page' => $modules_page,
),
- 'configure_metatags_quick' => array(
- '#title' => t('Configure Meta tags quick module.'),
- 'config_page' => array(
- '#text' => t('Configure'),
- '#path' => 'admin/config/search/metatags_quick',
- ),
- ),
- 'install_scheduler' => array(
- '#title' => t('Install Scheduler module.'),
- '#default_value' => module_exists('scheduler'),
+ 'configure_microdata' => array(
+ '#title' => t('Configure Microdata module.'),
'project_page' => array(
- '#text' => t('Download'),
- '#path' => 'http://drupal.org/project/scheduler',
+ '#text' => t('Configure'),
+ '#path' => 'admin/config/services/microdata',
),
- 'modules_page' => $modules_page,
),
'install_htmlpurifier' => array(
'#title' => t('Install HTML Purifier module.'),
@@ -337,21 +327,6 @@ function seo_checklist_checklistapi_checklist_info() {
),
'modules_page' => $modules_page,
),
- 'install_read_more' => array(
- '#title' => t('Install Read More Link module.'),
- '#default_value' => module_exists('read_more'),
- 'project_page' => array(
- '#text' => t('Download'),
- '#path' => 'http://drupal.org/project/read_more',
- ),
- 'modules_page' => $modules_page,
- ),
- ),
-
- // Clean code.
- 'clean_code' => array(
- '#title' => t('Clean code'),
- '#description' => t('<p>Well written markup is very important to the search engine spiders.</p>'),
'validate_html' => array(
'#title' => t('Validate your markup.'),
'w3c_validator' => array(
@@ -371,7 +346,7 @@ function seo_checklist_checklistapi_checklist_info() {
// Submit your site to the search engines.
'submit_to_search_engines' => array(
'#title' => t('Submit your site to the search engines'),
- '#description' => t("<p>Now that you've got your site ready for the search engines, tell them about it!</p>"),
+ '#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>"),
'install_site_verify' => array(
'#title' => t('Install Site verification module.'),
'#default_value' => module_exists('site_verify'),
@@ -439,7 +414,7 @@ function seo_checklist_checklistapi_checklist_info() {
),
),
'add_to_google_places' => array(
- '#title' => t('Add your business to Google Places, if appropriate.'),
+ '#title' => t('[Optional] Add your business to Google Places, if appropriate.'),
'google_places' => array(
'#text' => t('Google Places'),
'#path' => 'http://www.google.com/local/add/',
@@ -447,144 +422,104 @@ function seo_checklist_checklistapi_checklist_info() {
),
),
- // Social media.
- 'social_media' => array(
- '#title' => t('Social media'),
- '#description' => t('<p>Using Social news sites, blogs, etc? Consider these:</p>'),
- 'install_addthis' => array(
- '#title' => t('Install AddThis module.'),
- '#default_value' => module_exists('addthis'),
+ // Other checklists.
+ 'other_checklists' => array(
+ '#title' => t('Other checklists'),
+ '#description' => t('<p>These checklists are essential for additional important Internet Marketing related tasks for your website.</p>'),
+ 'install_security_review' => array(
+ '#title' => t('[Optional] Install Security Review module.'),
+ '#description' => t('The more popular your website becomes, the more important good security will be.'),
+ '#default_value' => module_exists('security_review'),
'project_page' => array(
'#text' => t('Download'),
- '#path' => 'http://drupal.org/project/addthis',
+ '#path' => 'http://drupal.org/project/security_review',
),
'modules_page' => $modules_page,
),
- 'install_service_links' => array(
- '#title' => t('Install Service links module.'),
- '#default_value' => module_exists('service_links'),
- 'project_page' => array(
- '#text' => t('Download'),
- '#path' => 'http://drupal.org/project/service_links',
+ ),
+
+ // Paid services.
+ 'paid_services' => array(
+ '#title' => t('Paid services (optional)'),
+ '#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>'),
+ 'mollom_spam_prevention' => array(
+ '#title' => t('[Optional] Mollom spam prevention'),
+ '#description' => t('<p>If your site will get heavy use from visitors creating accounts, commenting and/or creating content then use Mollom.</p>'),
+ 'register_page' => array(
+ '#text' => t('Mollom website'),
+ '#path' => 'http://mollom.com/',
),
- 'modules_page' => $modules_page,
- ),
- 'install_addtoany' => array(
- '#title' => t('Install Share Buttons (AddToAny) module.'),
- '#default_value' => module_exists('addtoany'),
'project_page' => array(
'#text' => t('Download'),
- '#path' => 'http://drupal.org/project/addtoany',
+ '#path' => 'http://drupal.org/project/mollom',
),
'modules_page' => $modules_page,
- ),
- 'install_fb_social' => array(
- '#title' => t('Install Facebook social plugins integration module.'),
- '#default_value' => module_exists('fb_social'),
- 'project_page' => array(
- '#text' => t('Download'),
- '#path' => 'http://drupal.org/project/fb_social',
+ 'config_page' => array(
+ '#text' => t('Configure'),
+ '#path' => 'admin/config/content/mollom',
),
- 'modules_page' => $modules_page,
),
- 'install_follow' => array(
- '#title' => t('Install Follow module.'),
- '#default_value' => module_exists('follow'),
- 'project_page' => array(
- '#text' => t('Download'),
- '#path' => 'http://drupal.org/project/follow',
+ 'volacci_automatr' => array(
+ '#title' => t('[Optional] Volacci Automatr&trade; marketing automation'),
+ '#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(
+ '@automatr_url' => $automatr_url = 'http://automatr.volacci.com/?utm_source=seo_checklist&utm_medium=backend&utm_content=text&utm_campaign=volacci_automatr',
+ '@marketo_url' => 'http://www.marketo.com/',
+ '@eloqua_url' => 'http://www.eloqua.com/',
+ )),
+ 'automatr_website' => array(
+ '#text' => t('Automatr website'),
+ '#path' => $automatr_url,
),
- 'modules_page' => $modules_page,
- ),
- ),
-
- // Use Mollom to prevent spam.
- 'prevent_spam' => array(
- '#title' => t('Use Mollom to prevent spam'),
- '#description' => t('<p>If your site will get heavy use from visitors creating accounts, commenting and/or creating content then use Mollom. If, for some reason, Mollom does not work for you, consider the <a href="http://drupal.org/project/captcha">CAPTCHA</a> or <a href="http://drupal.org/project/antispam">AntiSpam</a> modules.</p>'),
- 'sign_up_for_mollom_account' => array(
- '#title' => t('Sign up for a free mollom account.'),
- 'register_page' => array(
- '#text' => t('Create account'),
- '#path' => 'http://mollom.com/user/register',
- ),
- ),
- 'install_mollom' => array(
- '#title' => t('Install Mollom module.'),
- '#default_value' => module_exists('mollom'),
'project_page' => array(
'#text' => t('Download'),
- '#path' => 'http://drupal.org/project/mollom',
+ '#path' => 'http://drupal.org/project/automatr',
),
'modules_page' => $modules_page,
- ),
- 'configure_mollom_api_keys' => array(
- '#title' => t('Configure Mollom API keys.'),
- '#default_value' => variable_get('mollom_public_key', '') && variable_get('mollom_private_key', ''),
'config_page' => array(
'#text' => t('Configure'),
- '#path' => 'admin/config/content/mollom/settings',
+ '#path' => 'admin/config/marketing/automatr',
),
),
),
- // Geographic.
- 'geographic' => array(
- '#title' => t('Geographic'),
- 'add_geo_meta_tags' => array(
- '#title' => t('Add geo meta tags with the Meta Tags module.'),
- ),
- ),
-
- // Performance.
- 'performance' => array(
- '#title' => t('Performance'),
- 'enable_drupal_caching' => array(
- '#title' => t("Turn on Drupal's built-in caching."),
- '#default_value' => variable_get('cache', FALSE) && variable_get('block_cache', FALSE),
- 'config_page' => array(
- '#text' => t('Performance page'),
- '#path' => 'admin/config/development/performance',
+ // Extras.
+ 'extras' => array(
+ '#title' => t('Extras (optional)'),
+ 'install_scheduler' => array(
+ '#title' => t('[Optional] Install Scheduler module.'),
+ '#default_value' => module_exists('scheduler'),
+ 'project_page' => array(
+ '#text' => t('Download'),
+ '#path' => 'http://drupal.org/project/scheduler',
),
+ 'modules_page' => $modules_page,
),
- 'install_boost' => array(
- '#title' => t('Install Boost module.'),
- '#default_value' => module_exists('boost'),
+ 'install_read_more' => array(
+ '#title' => t('[Optional] Install Read More Link module.'),
+ '#default_value' => module_exists('read_more'),
'project_page' => array(
'#text' => t('Download'),
- '#path' => 'http://drupal.org/project/boost',
+ '#path' => 'http://drupal.org/project/read_more',
),
'modules_page' => $modules_page,
- 'more_info' => array(
- '#text' => t('More info'),
- '#path' => 'http://drupal.org/node/1434362',
- ),
),
- ),
-
- // Extras.
- 'extras' => array(
- '#title' => t('Extras'),
'download_internet_marketing_whitepapers' => array(
- '#title' => t('Download <a href="http://www.volacci.com/resources/whitepapers">free internet marketing whitepapers</a> from Volacci.'),
+ '#title' => t('[Optional] Download <a href="http://www.volacci.com/resources/whitepapers">free internet marketing whitepapers</a> from Volacci.'),
),
'link_to_volacci' => array(
- '#title' => t('Link to <a href="http://www.volacci.com/">Volacci</a> to thank them for this awesome module.'),
+ '#title' => t('[Optional] Link to <a href="http://www.volacci.com/">Volacci</a> to thank them for this awesome module.'),
'#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!'),
),
'send_feedback' => array(
- '#title' => t("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."),
+ '#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."),
'#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>."),
'email_link' => array(
'#text' => t('seochecklist@volacci.com'),
'#path' => 'mailto:seochecklist@volacci.com',
),
),
- 'listen_to_volacci_podcast' => array(
- '#title' => t('Listen to the <a href="http://www.volacci.com/podcast">Volacci Drupal SEO Podcast</a> for more tips and tricks about Drupal SEO. '),
- ),
'read_drupal_6_seo_book' => array(
- '#title' => t('Read Drupal 6 Search Engine Optimization by Ben Finklea.'),
+ '#title' => t('[Optional] Read Drupal 6 Search Engine Optimization by Ben Finklea.'),
'buy_from_amazon' => array(
'#text' => t('Buy from Amazon'),
'#path' => 'http://www.amazon.com/gp/product/1847198228?ie=UTF8&tag=dvdcentral02&linkCode=as2&camp=1789&creative=390957&creativeASIN=1847198228',
@@ -595,7 +530,7 @@ function seo_checklist_checklistapi_checklist_info() {
),
),
'watch_drupalize_me_video' => array(
- '#title' => t('Watch the free <a href="http://drupalize.me/videos/introduction-drupal-seo">Introduction to Drupal SEO</a> video from Lullabot.'),
+ '#title' => t('[Optional] Watch the free <a href="http://drupalize.me/videos/introduction-drupal-seo">Introduction to Drupal SEO</a> video from Lullabot.'),
),
),
@@ -619,23 +554,12 @@ function seo_checklist_page_alter(&$page) {
if (_seo_checklist_volacci_link_is_enabled()) {
$page['page_bottom']['seo_checklist_volacci_link'] = array(
'#type' => 'markup',
- '#markup' => '<div id="seo-checklist-volacci-link"><a href="http://www.volacci.com/">Drupal SEO</a></div>',
+ '#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>',
);
}
}
/**
- * Implements hook_preprocess_HOOK() for seo_checklist_intro_tab.tpl.php.
- */
-function template_preprocess_seo_checklist_intro_tab(&$variables) {
- $variables['volacci_logo'] = theme('image', array(
- 'path' => drupal_get_path('module', 'seo_checklist') . '/volacci-logo.png',
- 'alt' => t('Volacci'),
- 'title' => t('Volacci'),
- ));
-}
-
-/**
* Implements hook_theme().
*/
function seo_checklist_theme($existing, $type, $theme, $path) {