Colors of social brands is [here][2]
Facebook Share
http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwebsite.com&t=url%20encoded%20text
Facebook Like Button
http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwebsite.com
| /** | |
| * Implements hook_inline_entity_form_table_fields_alter(). | |
| */ | |
| function MODULE_inline_entity_form_table_fields_alter(&$fields, $context) { | |
| if ($context['parent_bundle'] === 'MODULE' && | |
| $context['entity_type'] === 'MODULE_text_asset') { | |
| // Remove Title. | |
| unset($fields['id']); |
| <?php | |
| /** | |
| * @Then /^I fill in wysiwyg on field "([^"]*)" with "([^"]*)"$/ | |
| */ | |
| public function iFillInWysiwygOnFieldWith($arg, $arg2) | |
| { | |
| $this->getSession()->executeScript("CKEDITOR.instances.$arg.setData(\"$arg2\");"); | |
| } |
| name: 'Ajax Example' | |
| description: 'Just an Ajax Example' | |
| core: 8.x | |
| type: module |
| /** | |
| * See if the element (name|label|id) is greater than the % of the window | |
| * | |
| * @Then /^the element "([^"]*)" should be "([^"]*)" percent or greater than the window$/ | |
| */ | |
| public function theElementShouldBePercentOrGreaterThanTheWindow($arg1, $arg2) | |
| { | |
| //@todo | |
| $javascript_check = <<<HEREDOC | |
| if(!jQuery('$arg1').length) { return "FAILED"; } |
| /** | |
| * @hidden | |
| * | |
| * @Then /^I switch to popup by clicking "([^"]*)"$/ | |
| */ | |
| public function iSwitchToPopupByClicking($arg1) { | |
| $originalWindowName = $this->getMainContext()->getSession()->getWindowName(); | |
| $this->setMainWindow(); | |
| $this->getMainContext()->getSession()->getPage()->clickLink("$arg1"); //Pressing the withdraw button |
| /** | |
| * @hidden | |
| * | |
| * @Then /^I click on the alert window$/ | |
| */ | |
| public function iClickOnTheAlertWindow() { | |
| $this->getMainContext()->getSession()->getDriver()->getWebDriverSession()->accept_alert(); | |
| } |
| /** | |
| * Some forms do not have a Submit button just pass the ID | |
| * | |
| * @Given /^I submit the form with id "([^"]*)"$/ | |
| */ | |
| public function iSubmitTheFormWithId($arg) | |
| { | |
| $node = $this->getMainContext()->getSession()->getPage()->find('css', $arg); | |
| if($node) { | |
| $this->getMainContext()->getSession()->executeScript("jQuery('$arg').submit();"); |
| /** | |
| * Sets an iFrame ID to no_name_iframe if there is no ID. You can then add a Switch to iFrame step after it using the na_name_iframe ID. | |
| * | |
| * @Given /^I the set the iframe located in element with an id of "([^"]*)"$/ | |
| */ | |
| public function iSetTheIframeLocatedInElementWithAnIdOf($element_id) { | |
| $check = 1; //@todo need to check using js if exists | |
| if($check <= 0) { |
| dependencies[] = ctools | |
| ; Views Handlers | |
| files[] = views/mymodule_handler_handlername.inc |