public function InstapageCmsPluginDrupal7Connector::isProhibitedSlug in Instapage plugin 7.3
Same name and namespace in other branches
- 8.3 core/connectors/InstapageCmsPluginDrupal7Connector.php \InstapageCmsPluginDrupal7Connector::isProhibitedSlug()
Checks if given slug is prohibited in terms of publishing a landing page. If it's free - will return false. Otherwise an array with slug details will be returned
@uses self::isProhibitedPostSlug() @uses InstapageCmsPluginConnector::isProhibitedLandingPageSlug()
Parameters
string $slug Slug to be checked:
Return value
bool|array
File
- core/
connectors/ InstapageCmsPluginDrupal7Connector.php, line 725
Class
- InstapageCmsPluginDrupal7Connector
- Class that utilizes native Drupal 7 functions to perform actions like remote requests and DB operations.
Code
public function isProhibitedSlug($slug) {
$postSlug = $this
->isProhibitedPostSlug($slug);
if ($postSlug) {
return $postSlug;
}
$landingPageSlug = InstapageCmsPluginConnector::isProhibitedLandingPageSlug($slug);
if ($landingPageSlug) {
return $landingPageSlug;
}
return false;
}